/* ==================== 基础容器样式 ==================== */
.communityContainer {
  max-width: 100%;
  margin: 0 auto;
}

/* ==================== 页面标题 ==================== */
.pageTitle {
  color: #fff;
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.pageTitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #1890ff;
}

/* ==================== 筛选控制区域 ==================== */
.filterBar {
  background-color: rgba(40, 40, 40, 0.8);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid #444;
}

.filterControls {
  display: flex;
  gap: 15px;
  align-items: center;
}

.searchInput {
  flex: 1;
  max-width: 400px;
}

.searchInput .ant-input {
  background-color: #333;
  border-color: #444;
  color: #fff;
}

.searchInput .ant-input::placeholder {
  color: #777;
}

.searchInput .ant-input-group-addon button {
  background-color: #1890ff;
  border-color: #1890ff;
  color: #fff;
}

.sortSelect {
  margin-left: auto;
}

.sortSelect .ant-select-selector {
  background-color: #333 !important;
  border-color: #444 !important;
  color: #fff !important;
}

.sortSelect .ant-select-arrow {
  color: #aaa;
}

/* ==================== 分类标签页 ==================== */
.categoryTabs {
  margin-bottom: 15px;
}

.categoryTabs .ant-tabs-nav::before {
  border-bottom: 1px solid #444 !important;
}

.categoryTabs .ant-tabs-tab {
  color: #aaa;
  padding: 10px 16px;
  font-size: 14px;
}

.categoryTabs .ant-tabs-tab:hover {
  color: #fff;
}

.categoryTabs .ant-tabs-tab-active {
  color: #1890ff;
}

.categoryTabs .ant-tabs-ink-bar {
  background: #1890ff;
}

/* ==================== 游戏网格布局 ==================== */
.gameGrid {
  margin-bottom: 30px;
}

/* ==================== 游戏卡片 ==================== */
.gameCard {
  background-color: rgba(40, 40, 40, 0.8);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #444;
}

.gameCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #1890ff;
}

/* 游戏图片区域 */
.imageContainer {
  position: relative;
  width: 100%;
  padding-top: 140%; /* 保持宽高比 */
  overflow: hidden;
}

.gameImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gameCard:hover .gameImage {
  transform: scale(1.05);
}

.gameOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
}

/* 游戏信息区域 */
.gameInfo {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gameTitle {
  color: #fff;
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gameMeta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
}

/* 游戏元素样式 */
.gamePrice {
  background-color: #1890ff;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  align-self: flex-end;
}

.gameRating {
  color: #ffc107;
  font-size: 14px;
}

.gameCategory {
  color: #aaa;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.newBadge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4d4f;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* ==================== 无结果提示 ==================== */
.noResults {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background-color: rgba(40, 40, 40, 0.5);
  border-radius: 8px;
  border: 1px dashed #444;
}

.noResultsImage {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.noResults p {
  color: #aaa;
  font-size: 16px;
  margin-bottom: 20px;
}

.resetButton {
  background-color: #1890ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.resetButton:hover {
  background-color: #40a9ff;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  .filterControls {
    flex-direction: column;
    align-items: stretch;
  }

  .searchInput {
    max-width: 100%;
  }

  .sortSelect {
    margin-left: 0;
    width: 100%;
  }

  .categoryTabs .ant-tabs-nav-wrap {
    overflow-x: auto;
    padding-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .filterBar {
    padding: 10px;
  }

  .categoryTabs .ant-tabs-tab {
    padding: 8px 12px;
    font-size: 13px;
  }
}
